<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>

<head>
<title>设备供应单位信息</title>
<script type="text/javascript">
</script>
</head>
<body>
<h2 class="title">设备供应方信息列表 
<m:permiss permiss="DEVICE_SUPPLY">
<m:imgA img="add" msg="添加设备供应方信息" action="devicesupply/EditDeviceSupply!toView" />
</m:permiss>
</h2>
<table class="list">
	<thead>
		<tr>
			<th width="15%">单位名称</th>
			<th width="10%">联系人</th>
			<th width="10%">联系电话</th>
			<th width="20%">联系地址</th>
			<th width="10%">操作人</th>
			<th width="20%">供应方描述</th>
			<th width="5%">是否有效</th>
			<th width="10%">操作</th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="ds.items">
			<tr id="pt${id }">
				<td><s:property value="unitName" /></td>
				<td><s:property value="linkName" /></td>
				<td><s:property value="linkPhone" /></td>
				<td><s:property value="linkAddr"/></td>
				<td><s:property value="user.name"/></td>
				<td><s:property value="supplyDesc"/></td>
				<td><s:if test="enable == true">是</s:if><s:else>否</s:else></td>
				<td>
					<m:permiss permiss="DEVICE_SUPPLY_EDIT">
						<m:imgA img="edit" msg="修改"
					action="devicesupply/EditDeviceSupply!toEdit?dsid=${id}" />
					</m:permiss>
				<s:if test="enable == true">
					<m:permiss permiss="DEVICE_SUPPLY_OFF">
					<m:imgA img="lock" msg="禁用"
						action="devicesupply/ListDeviceSupply!toDisable?dsid=${id}" />
						</m:permiss>
				</s:if><s:else>
				<m:permiss permiss="DEVICE_SUPPLY_START">
						<m:imgA img="unlock" msg="启用"
						action="devicesupply/ListDeviceSupply!toEnable?dsid=${id}"/>
						</m:permiss>
					  </s:else>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<m:page value="${ds}" showSeaBar="true"/>
</body>